#include <fstream>
#include <iostream>

#include "complex.h"
 
int main()
{
    try
    {
        Complex a,b,c;
        std::cout << "Expression a*b+c will be evaluated, please provide a, b and c:" << std::endl;
        std::cin >> a >> b >> c;
        std::cout << a*b + c;
    }
    catch (std::exception& e)
    {
        std::cerr << "std::exception caught" << std::endl;
        std::cerr << "Type: " << typeid(e).name() << std::endl;
        std::cerr << "What: " << e.what() << std::endl;
    }

    std::getc(stdin); //just that the console doesn't dissapear if program run by doubleclick
    return 0;
}
